package com.yckj.day04;

/**
 * TODO 二维数组的遍历
 *
 * @author shengyuee
 * @version 1.0
 * 2025/7/21 15:57
 */
public class ArrayDemo6 {
    public static void main(String[] args) {
        int[][] arr =  {{1,2},{3,4,5},{6,7,8,9}};
        // 遍历
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.print(arr[i][j]+" ");
            }
            System.out.println();
        }
    }
}
